package com.ziyun.erp.modules.order.dao;

import com.ziyun.erp.modules.order.entity.UserPaymentEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户支付记录表
 * 
 * @author guizhao
 * @email ...
 * @date 2018-08-06 11:45:03
 */
@Service("userPaymentDao")
public interface UserPaymentDao extends BaseMapper<UserPaymentEntity> {

    UserPaymentEntity getPaySuccLastEntityByOrderId(String orderId);

    int updateByMap(@Param("map") Map<String, Object> map, @Param("paymentId") String paymentId);

    List<UserPaymentEntity> queryOrderPaymentInfo(@Param("orderId") String orderId);
}
